package example.startone;

import example.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestOne {
	public static void main(String[] args) {
		//准备spring的环境
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		Object test = context.getBean("test");
		System.out.println(test);
	}
}
